/*
 * @Author: Wushiqi
 * @Descripttion: 个人信息相关接口
 * @Date: 2020-08-26 18:17:42
 * @LastEditor: Wushiqi
 * @LastEditTime: 2020-09-24 09:32:53
 */

import { get, put } from '../../http'

// 用户个人信息
const userInfoAPI = (params) => get('/user/userInfo', params)
// 修改用户信息
const updateUserInfoAPI = (params) => put('/user/update', params)
// 修改密码
const changePwdAPI = (params) => put('/user/updatePWD', params)
// 用户角色
const userRoleAPI = (params) => get('/user/userRole', params)
// 用户出单中心
const userCenterAPI = (params) => get('/user/userCenter', params)

export default {
  userInfoAPI,
  updateUserInfoAPI,
  changePwdAPI,
  userRoleAPI,
  userCenterAPI
}
